include ../Makehead

LdFlags += -r
CFlags += -I../include 
CPP += -I../include

.c.s:
	$(CC) $(CFlags) -S -o $*.s $<
.s.o:
	$(AS) -o $*.o $<
.c.o:
	$(CC) $(CFlags) -c -o $*.o $<

Objs = write.o errno.o open.o dup.o close.o _exit.o execve.o wait.o setsid.o  \
	ctype.o string.o debug.o 

build: lib.a 

lib.a: $(Objs)
	$(AR) rcs lib.a $(Objs)
	sync

clean:
	rm -rf *.o *.s *.a  